<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>管理员帐号--新增帐号</title>
		<link rel="stylesheet" type="text/css" href="../css/style1.css" />
		<link rel="stylesheet" type="text/css" href="../css/base.css" />
		<link rel="stylesheet" type="text/css" href="../css/indexbody.css" />
		<script type="text/javascript" src="../js/frame.js"></script>
<script type="text/javascript">
	window.onload=function(){
		document.getElementById("hide").style.display="block";
			document.getElementById("sc").style.display="none";
			document.getElementById("vip").style.display='none';
			document.getElementById("mb").style.display='none';
			document.getElementById("sys").style.display='none';
	}
</script>
<script language='javascript'>
	function checkSubmit()
  {
     if(document.form1.uname.value==""){
	     alert("用户名不能为空！");
	     document.form1.uname.focus();
	     return false;
     }
     if(document.form1.pwd.value==""){
	     alert("用户密码不能为空！");
	     document.form1.pwd.focus();
	     return false;
     }
     if (document.form1.qpwd.value=="") {
		 alert("确认密码不能为空！");
	     document.form1.qpwd.focus();
	     return false;
	}
	if (document.form1.qpwd.value!=document.form1.pwd.value) {
		 alert("确认密码和密码不一致！");
	     document.form1.qpwd.focus();
	     return false;
	}
	  if (document.form1.email.value=="") {
		 alert("邮箱不能为空！");
	     document.form1.email.focus();
	     return false;
	}
     return true;
 }
</script>
</head>
<body background='../images/allbg.gif' leftmargin='8' topmargin='8'>
 <div id="container">
       <jsp:include page="../header.jsp"></jsp:include>
        <div style="float:left; width:195px; height: 550px">
        	<jsp:include page="../leftnav.jsp"></jsp:include>
        </div>
       <div style="float:left; overflow-y:scroll; overflow-x:hidden; width: 785px; height: 550px;">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
  <tr>
    <td height="19" background="../images/tbg.gif" bgcolor="#E7E7E7"> 
      <table width="96%" border="0" cellspacing="1" cellpadding="1">
        <tr> 
          <td width="24%" style="padding-left:10px;"><b><strong>新增帐号</strong></b> </td>
          <td width="76%" align="right"><strong><a href="javascript:;"><u>管理帐号</u></a></strong></td>
        </tr>
      </table></td>
</tr>
<tr>
    <td height="215" align="center" valign="top" bgcolor="#FFFFFF">
	<form name="form1" action="<%=path %>/manager/system/addAdminAction.action" onSubmit="return checkSubmit();" method="post">
  <table width="98%" border="0" cellspacing="1" cellpadding="1">
          <tr> 
            <td width="16%" height="30">用户登录ID：</td>
            <td width="84%"  style="text-align:left;"><input name="adminUser.userName" type="text" id="uname" size="16" style="width:200px" /></td>
          </tr>
          <tr> 
            <td height="30">用户密码：</td>
            <td style="text-align:left;"><input name="pwd" type="password" id="pwd" size="16" style="width:200px" /></td>
          </tr>
          <tr> 
            <td height="30">确认用户密码：</td>
            <td style="text-align:left;">
			    <input name="adminUser.password" type="password" id="qpwd" size="16" style="width:200px" />
            </td>
          </tr>

          <tr> 
            <td height="30">电子邮箱：</td>
            <td style="text-align:left;"><input name="adminUser.email" type="text" id="email" size="16" style="width:200px" /> &nbsp;</td>
          </tr>
          <tr> 
            <td height="60">&nbsp;</td>
            <td><input type="submit" name="Submit" value=" 增加用户 " class="coolbg np" />
            	<input type="reset" value="重置用户 " class="coolbg np" />
            </td>
          </tr>
        </table>
      </form>
	  </td>
</tr>
</table>       	
       </div>
    </div>
</body>
</html>